export enum ResponsetCode {
	SUCCESS = 200,
	FAILURE = 201,
}
export enum ResponseStatus {
	SUCCESS = "success",
	FAILURE = "failure",
}

export type PageResult = {
	page: number;
	pageSize: number;
	total: number;
	totalPage: number;
};

export type WebResult<T = object | string | number | boolean> = {
	time: Date;
	code: ResponsetCode;
	status: ResponseStatus;
	type?: ResponseStatus;
	message: string;
	data?: T;
	page?: PageResult;
};
